package com.cy.ppj.dao.mongodb;

import com.cy.ppj.model.doc.AdmissionLog;
import org.springframework.data.domain.Sort;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.Date;

public interface XyAdmissionLogDao extends MongoRepository<AdmissionLog, String> {

    AdmissionLog findByIdNoAndExpiryDateGreaterThan(String idNo, Date expiryDate, Sort sort);
}
